#include<stdio.h>
int tadd_ok(int x,int y){
        int sum= x+y;
	int neg_over=x<0&&y<0&&sum>=0;//zhengyichu
	int pos_over=x>=0&&y>=0&&sum<0;//fuyichu
        return !neg_over&&!pos_over;
}

int main(){
        int x,y;
        printf("input x&y:\n");
        scanf("%d %d",&x,&y);
        printf("%d+%d=%d  溢出/不溢出（0/1）-----%d    ",x,y,x+y,tadd_ok(x,y));
}

